package com.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
//标记配置类
@Configuration
//扫描包
@ComponentScan(basePackages = "com.zhl")
//导入子配置类
@Import(JdbcConfig.class)
//读取配置文件
@PropertySource(value = "classpath:jdbcConfig.properties")
public class SpringConfig {

}
